package org.example.pingpong.domain.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "用户表单实体")
public class UserFormDTO {

    @ApiModelProperty(value = "id", required = true, example = "1")
    @JsonProperty("ID")
    private Integer id;

    @ApiModelProperty(value = "账号")
    @JsonProperty("USERNAME")
    private String username;

    @ApiModelProperty(value = "密码")
    @JsonProperty("PASSWORD")
    private String password;

    @ApiModelProperty(value = "昵称")
    @JsonProperty("NICKNAME")
    private String nickname;

    @ApiModelProperty(value = "分数")
    @JsonProperty("RATING")
    private Integer rating;

    @ApiModelProperty(value = "头像")
    @JsonProperty("PIC")
    private String pic;

    @ApiModelProperty(value = "邮箱")
    @JsonProperty("EMAIL")
    private String email;

    @ApiModelProperty(value = "性别")
    @JsonProperty("GENDER")
    private String gender;

    @ApiModelProperty(value = "年龄")
    @JsonProperty("AGE")
    private Integer age;

    @ApiModelProperty(value = "权限")
    private Integer power;

    @ApiModelProperty(value = "验证码")
    private String code;
}
